package main

import (
	"fmt"
	"webProTest/util"
)

func main() {
	GetMethodTest()
	//PostMethodTest()
}

func GetMethodTest() {
	ret := util.Get("http://localhost:8087/getmovieinfo/223/wewe")
	fmt.Println("ret=" + ret)
}

func PostMethodTest() {
	var data map[string]string // 创建map集合
	data = make(map[string]string)
	data["id"] = "223"
	data["name"] = "test22"
	ret := util.Post("http://localhost:8087/postSystemConfig", data, "application/json; charset=utf-8")
	fmt.Println("ret=" + ret)
}
